package com.faithbj.device.web.controller;

import javax.annotation.Resource;

import org.springframework.ui.ModelMap;

import com.faithbj.device.utils.SystemConfigUtil;

/**
 * 前台Action类 - 前台基类
 * <p>Copyright: Copyright (c) 2011</p> 
 * 
 * <p>Company: www.faithbj.com</p>
 * 
 * @author 	faithbj
 * @date 	2011-12-16
 * @version 1.0
 */

public class BaseController {
	
	protected String[] ids;
//	protected Pager pager=new Pager();
	protected String logInfo;// 日志记录信息
	protected String redirectUrl;// 操作提示后的跳转URL,为null则返回前一页
	
	/**
	 * 返回成功页面
	 */
	protected static final String SUCCESS="/admin/success";
	/**
	 * 返回失败页面
	 */
	protected static final String ERROR="/admin/error";
	protected static final String STATUS= "status";
	
	@Resource
	protected SystemConfigUtil systemConfigUtil;
	

	public void addSystemConfig(ModelMap map) {
		map.put("setting", systemConfigUtil);
	}

}
